<!-- $Id: goods_list.htm 17126 2010-04-23 10:30:26Z liuhui $ -->

{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<script type="text/javascript">
  listTable.query = "goods_query";
</script>
<!-- 商品搜索 -->
{include file="ware/search.htm"}
<!-- 商品列表 -->
<form method="post" action="" name="listForm" onsubmit="return confirmSubmit(this)">
  <!-- start goods list -->
  <div class="list-div" id="listDiv">
{/if}
<table cellpadding="3" cellspacing="1">
  <tr>
    <th>ID</th>
    <th>SKU</th>
    <th>名称</th>
    <th>属性</th>
    <th>地区</th>
    <th>库存</th>
    <th>未发货库存</th>
    <th>库存下限</th>
    <th>进货价</th>
  </tr>
  {foreach from=$goods_list item=goods}
  <tr>
    <td align="center">{$goods.goods_id}</td>
    <td align="center">{$goods.goods_sku}</td>    
    <td align="center">{$goods.goods_name|escape:html}</td>
    <td align="center">{$goods.attr_value}</td>
    <td align="center">{$goods.area_name}</td>
    <td align="center">{$goods.goods_number}</td>
    <td align="center">{$goods.plan_stock}</td>
    <td align="center">{$goods.remind_num}</td>
    <td align="center">{$goods.goods_xprice}</td>
  </tr>
  {foreachelse}
  <tr><td class="no-records" colspan="10">{$lang.no_records}</td></tr>
  {/foreach}
</table>
<!-- end goods list -->

<!-- 分页 -->
<table id="page-table" cellspacing="0">
  <tr>
    <td align="right" nowrap="true">
    {include file="page.htm"}
    </td>
  </tr>
</table>

{if $full_page}
</div>


</form>

<script type="text/javascript">
  listTable.recordCount = {$record_count};
  listTable.pageCount = {$page_count};

  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}
</script>

{/if}